projects
/
cmus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
336c793
)
ip/ffmpeg: flush swresample buffer when seeking
author
ihy123
<aladinandreyy@gmail.com>
Sun, 17 Aug 2025 11:53:52 +0000
(14:53 +0300)
committer
Sebastian Ramacher
<sramacher@debian.org>
Fri, 12 Sep 2025 21:00:35 +0000
(23:00 +0200)
Gbp-Pq: Name 0008-ip-ffmpeg-flush-swresample-buffer-when-seeking.patch
ip/ffmpeg.c
patch
|
blob
|
history
diff --git
a/ip/ffmpeg.c
b/ip/ffmpeg.c
index 42f630ee7aa091badf8fcaa32e67303b09b8288b..775e7de1d6831734b9b4704cce1685f5eeec0970 100644
(file)
--- a/
ip/ffmpeg.c
+++ b/
ip/ffmpeg.c
@@
-444,7
+444,7
@@
static int ffmpeg_seek(struct input_plugin_data *ip_data, double offset)
priv->swr_frame->nb_samples = 0;
avcodec_flush_buffers(priv->codec_ctx);
-
/* also flush swresample buffers?
*/
+
swr_convert(priv->swr, NULL, 0, NULL, 0); /* flush swr buffer
*/
return 0;
}